// plopfile.js
export default function (plop) {
    plop.setGenerator('component', {
      description: 'Create a Vue component',
      prompts: [{
        type: 'input',
        name: 'name',
        message: 'Component name (PascalCase):'
      }],
      actions: [{
        type: 'add',
        path: 'src/components/{{name}}/{{name}}.vue',
        templateFile: 'plop-templates/component.hbs'
      }]
    })
  
    plop.setGenerator('page', {
      description: 'Create a page component',
      prompts: [{
        type: 'input',
        name: 'name',
        message: 'Page name (kebab-case):'
      }],
      actions: [{
        type: 'add',
        path: 'src/views/{{kebabCase name}}/index.vue',
        templateFile: 'plop-templates/page.hbs'
      }]
    })
  }